]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: define proper :hover and :active states
authorJakub Steiner <jimmac@gmail.com>
Wed, 5 Sep 2018 18:33:56 +0000 (20:33 +0200)
committerJakub Steiner <jimmac@gmail.com>
Wed, 5 Sep 2018 18:33:56 +0000 (20:33 +0200)
- buttons didn't actually have these properly defined

fixes issue #523

data/theme/gnome-shell-sass/_common.scss
data/theme/gnome-shell-sass/_drawing.scss

index 64f9b02642d1b62d13e043618d694af0afe04a46..37ac36231b83d94ba3b456cd58a5ac9729adf47a 100644 (file)
@@ -48,17 +48,18 @@ stage {
   padding: 4px 32px;
   @include button(normal);
   &:focus { @include button(focus); }
+  &:hover { @include button(hover); }
   &:insensitive { @include button(insensitive); }
   &:active { @include button(active); }
-
 }
 
 .modal-dialog-linked-button {
   border-right-width: 1px;
   @include button(normal);
   &:insensitive { @include button(insensitive); }
-  &:active { @include button(active); }
   &:focus { @include button(focus); }
+  &:hover { @include button(hover); }
+  &:active { @include button(active); }
   padding: 12px;
 
   &:first-child {
index 66d5adab6108fd6d6098befee6c2c256b7cc89cf..7ac18b1bbd01bfc07f993988cda03acc2446cdc6 100644 (file)
   //
   // focused button
   //
-    $_bg: if($c!=$osd_bg_color, transparentize($c, 0.5),
-                          $osd_bg_color);
+    $_bg: if($c!=$osd_bg_color, transparentize($c, 0.3),
+                          lighten($osd_bg_color,3%));
 
     color: $osd_fg_color;
     text-shadow: 0 1px black;
   // active osd button
   //
     $_bg: if($c!=$osd_bg_color, transparentize($c, 0.3),
-                            lighten($osd_bg_color,10%));
+                            lighten($osd_bg_color,3%));
 
     color: white;
     border-color: $osd_borders_color;
 
     color: white;
     border-color: $osd_borders_color;
-    background-color: darken($_bg,5%);
+    background-color: $selected_bg_color;
     // This should be none, but it's creating some issues with borders, so to
     // workaround it for now, use inset wich goes through a different code path.
     // see https://bugzilla.gnome.org/show_bug.cgi?id=752934